package com.cw2.structural.facade;


/**
 * 门面模式
 */
public class WeiXinFacade {
    Edu edu = new Edu();
    Police police = new Police();

    Social social = new Social();

    // 门面模式
    public void facade(String name) {
        this.edu.assignSchool(name);
        this.police.resgister(name);
        this.social.handleSocial(name);
    }

    // 可以跟加装饰器
    public void resgister(String name) {
        this.police.resgister(name);
    }

    public void handleSocial(String name) {
        this.social.handleSocial(name);
    }
}
